package cn.mw.cmdb.entity;

import cn.mw.cmdb.service.ServiceChoose;
import cn.mw.cmdb.service.impl.InstanceTableHeaderServiceImpl;
import cn.mw.components.mongodb.anno.CMDBProperty;
import cn.mw.microMonitorCommon.entity.cmdb.TableHeaderItem;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Data
@Document("mw_cmdbmd_table_header")
public class TableHeader implements ServiceChoose {
    @CMDBProperty
    private String userId;
    @CMDBProperty
    private String tableId;
    @CMDBProperty
    private String id;
    @CMDBProperty
    private String modelId;
    @CMDBProperty
    private String menuId;
    @CMDBProperty
    private List<TableHeaderItem> items;

    @Override
    public String getServiceId() {
        return InstanceTableHeaderServiceImpl.ID;
    }
}
